package com.nightonke.boommenu.Animation;

import ohos.agp.animation.AnimatorProperty;
import ohos.agp.components.Component;
import ohos.agp.animation.Animator;
import ohos.agp.utils.Matrix;
import ohos.media.camera.device.Camera;
import ohos.agp.render.render3d.components.CameraComponent;

import java.util.ArrayList;


/**
 * Created by Weiping Huang at 20:12 on 2017/5/24
 * For Personal Open Source
 * Contact me at 2584541288@qq.com or nightonke@outlook.com
 */

public class Rotate3DAnimation extends AnimatorProperty {

    private float startX;
    private float startY;
    private float centerX;
    private float centerY;

    private ArrayList<Float> xs;
    private ArrayList<Float> ys;

    private Camera camera;
    private Component view;

    public Rotate3DAnimation(float centerXIn, float centerYIn, ArrayList<Float> xsIn,
                             ArrayList<Float> ysIn) {
        this.centerX = centerXIn;
        this.centerY = centerYIn;
        this.xs = xsIn;
        this.ys = ysIn;
    }


    /**
     * set
     * @param viewIn
     * @param startXIn
     * @param startYIn
     */
    public void set(Component viewIn, float startXIn, float startYIn) {
        this.view = viewIn;
        this.startX = startXIn;
        this.startY = startYIn;
    }
}
